// 分类页面的逻辑处理
import { ref, onMounted } from 'vue';
import { homeGetBannerList } from '@/api/home';
export function useBanner() {
  const bannerList = ref([]);
  const getBannerList = async () => {
    const res = await homeGetBannerList({
      distributionSite: '2'
    });
    bannerList.value = res.result;
  };

  onMounted(() => {
    getBannerList();
  });
  return {
    bannerList
  }
}
